package com.kfm.pm;

public class Demo03 {

    public static void main(String[] args) {
        // 二维数组初始化
        int[][] arr = new int[3][4]; // 动态初始化
        arr[0][0] = 1;
        int[][] arr1 = new int[][]{
                {1, 2, 3},
                {2, 3},
                {3, 4, 5, 4}
        };
        System.out.println(arr1[2][2]);
//        for (int i = 0; i < arr1.length; i++) {
//            System.out.println(arr1[i]);
//            for (int i1 = 0; i1 < arr1[i].length; i1++) {
//                System.out.println(arr1[i][i1]);
//            }
//        }

        for (int[] t : arr1) {
            for (int a : t) {
                System.out.println(a);
            }
        }

    }
}
